<!DOCTYPE html>
	<head>
		<meta charset="utf-8"/>
		<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
		<title>Text</title>
		<script src="js/jquery-1.7.1.min.js"></script>
		<link rel="stylesheet" href="css/jquery.mobile-1.4.3.min.css">
		<script src="js/jquery.mobile-1.4.3.min.js"></script>
		<link rel="stylesheet" href="js/main.css">
		<script type="text/javascript" src="js/jsapi.js"></script>
		<script src="js/javascript.js"></script>
		<!--<script src="js/chart.js"></script>-->
		<script type="text/javascript" src="js/nas_login.js"></script>	
		<script src="js/active_respond.js"></script>
		<script>
			$(document).ready(function(){
				console.log(localStorage.getItem('token'));
				console.log(localStorage.getItem('key'));
				var key = localStorage.getItem('key');
				for(var i=0;i<=key;i++){
					var id = localStorage.getItem(('id'+i));
					var name = localStorage.getItem(('name'+i));
	//				console.log(localStorage.getItem(('id'+i)) + " " +localStorage.getItem(('name'+i)));
					console.log(id + " " + name);					
					
					$('#tenant').append($("<option></option>").attr("value", id).text(name));
					
				}
				$('#tenant').selectmenu("refresh", true);
			});	

		</script>
	</head>
	<body>
<!--功能頁-->
		<div data-role="page" id='home'>
			<div data-role="header" data-position="fixed">
				<h1>Text</h1>
			</div>
			<div data-role="content" >
				<select id = 'tenant' data-ajax='false'>
				</select>		
				<div id="result">
					
				</div>				
				
				<ul data-role="listview" data-inset="true">
					<li><a href="Overview.html"  data-ajax = 'false'>Overview</a></li>	

					<li><a href="#" data-ajax = 'false' id='ceilmeter'>ceilmeter</a></li>
				
					<li><a href="check.html" >檢測連線</a></li>
					
					<li><a href="active_respond.html" >主動回應</a></li>
				
					<li><a href="#" id='out'>登出</a></li>												
				</ul>				
					
			</div>		
			<div data-role="footer" data-position="fixed">
				<h1>Text</h1>
			</div>
		</div>
		
<!--//overview
		<div data-role="page" id='Overview'>
			<div data-role="header" data-position="fixed">
				<h1>Overview</h1>
				<a data-icon="grid" href='manu.html'>功能表</a>
				<a data-icon="info" href='#'>tenant name</a>	
			</div>
			<div data-role="content" >
				<table width='100%' class='tb'>
					<tr>
						<td width='50%'>
							<div id="result"></div>
							<div id="chart_div" class='div' width='50%' height='30%'></div>
						</td>
						<td width='50%'>
							<div id="chart_div2" class='div' width='50%' height='30%'></div>
						</td>						
					</tr>
					<tr>
						<td>
							<div id="chart_div3"></div>
						</td>
						<td>
							<div id="chart_div4"></div>
						</td>						
					</tr>
					<tr>
						<td>
							<div id="chart_div5"></div>
						</td>
						<td>
							<div id="chart_div6"></div>
						</td>						
					</tr>
					<tr>
						<td>
							<div id="chart_div7"></div>
						</td>
						<td>
							<div></div>
						</td>						
					</tr>					
				</table>	
			</div>		
			<div data-role="footer" data-position="fixed">
				<h1>Overview</h1>
			</div>
		</div>	
	//Overview_Detail	
		<div data-role="page" id='Overview_Detail'>
			<div data-role="header" data-position="fixed" >
				<a data-icon="back" href='#Overview'>back</a>
				<h1>Overview_Detail</h1>
			</div>
			<div data-role="content" >

			</div>		
			<div data-role="footer" data-position="fixed">
				<h1>Overview_Detail</h1>
			</div>
		</div>
			-->
	</body>
</html>